package com.aishang.shopback_2005.controller;

import com.aishang.shopback_2005.po.User;
import com.aishang.shopback_2005.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 劉
 */

@RequestMapping("/user")
@RestController
public class UserController {
    @Resource
    private UserService userService;

    @RequestMapping("/login")
    public List<User> test(){
        return userService.getAll();
    }
}
